﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>裸钻订单</title>
    @Html.Partial("wap/team/commonMeta")
    <link rel="stylesheet" href="~/css/jquery-ui.min.css"/>
    <link rel="stylesheet" href="~/css/wap/team/product.css?v=@MvcWechat.Common.Version.Get" />
    <link href="~/Css/wap/team/stock.css?v=@MvcWechat.Common.Version.Get" rel="stylesheet" />
    <link href="~/Css/wap/team/teamorder.css?v=@MvcWechat.Common.Version.Get" rel="stylesheet"/>
    <link href="~/css/wap/team/photoswipe.css" type="text/css" rel="stylesheet" />
    <link rel="stylesheet" href="~/css/wap/team/product_item.css?v=@MvcWechat.Common.Version.Get" />
    <link rel="stylesheet" href="~/css/wap/team/item_app.css?v=@MvcWechat.Common.Version.Get" />
    <style type="text/css">
        .subnavbar{ display: block;}
        .subnavbar{ background: #fff; padding-bottom: 0 !important;}
        .form-control.time_input{background-color: #fff;}
        #product_table th{border: none;}
        .border-red{border-color: red;}
        /*.check_list li{*/
            /*display:none;*/
        /*}*/
    </style>
</head>
<body>
<div class="views">
    <div class="view view-main">
        <div class="navbar">
            <div class="navbar-inner">
               <!--头部start-->
                <header id="common_header">
                    <div class="menu_icon_box" id="show_menu_btn">
                        <em class="menu-btn"></em>
                    </div>
                    <div class="menu_icon_box" id="hide_menu_btn">
                        <em class="colse-nav-btn"></em>
                    </div>
                    <h2>订单-裸钻</h2>
                </header>
               <!--头部end-->
                @Html.Partial("wap/team/teammenu")

                <!--二级导航start-->
                <div class="subnavbar orderBar">
                    <div class="check_btn_box buttons-row" >
                        <ul class="check_list">

                            <li class="transfer">
                                <button class="search_btn_b ModifyPurchaseUserID" onclick='ModifyPurchaseUserID_Js()' disabled="disabled">选采购</button>
                            </li>


                            <li class="revise">
                                <button class="search_btn_b ReviseOrders" onclick='ReviseOrders_Js()' disabled="disabled">优惠</button>
                            </li>
                            <li class="arrived" >
                                <button class="search_btn_b ArrivalOrders" onclick="ArrivalOrders_Js()" disabled="disabled">确认到货</button>
                            </li>
                            <li class="cancel_arrived" >
                                <button class="search_btn_b CancelArrivalOrders" onclick="CancelArrivalOrders_Js()" disabled="disabled">取消到货</button>
                            </li>

                            <li class="pay" >
                                <button class="search_btn_b ReceiptOrders" id="ReceiptOrders"  disabled="disabled">付款</button>
                            </li>

                            <li class="freight">
                                <button class="search_btn_b ModFreight" onclick='ModFreight_Js()' disabled="disabled">运费</button>
                            </li>

                            <li class="invalid">
                                <button class="search_btn_b CancelOrders" onclick='CancelOrders_Js()' disabled="disabled">作废</button>
                            </li>

                            <li class="prepare">
                                <button class="search_btn_b AddShip" onclick="AddShip_Js();" disabled="disabled">制单</button>
                            </li>

                            <li class="ship">
                                <button class="search_btn_b EditShip" onclick='EditShip_Js()' disabled="disabled">出货</button>
                            </li>

                            <li class="receipt">
                                <button class="search_btn_b AddBill" id="AddBill" disabled="disabled">收款</button>
                            </li>

                            <li class="stock">
                                <button class="search_btn_b StockOrders" disabled="disabled" onclick='StockOrders_Js()'>自留变现</button>
                            </li>

                            <li class="back">
                                <button class="search_btn_b ReturnOrders" disabled="disabled" onclick='ReturnOrders_Js()'>退回供应商</button>
                            </li>

                            <li class="del">
                                <button class="search_btn_b DelOrders" onclick='DelOrders_Js()' disabled="disabled">删除</button>
                            </li>

                            <li class="RemarkOrder">
                                <button class="search_btn_b RemarkOrder" onclick='RemarkOrder_Js()' disabled="disabled">备注</button>
                            </li>

                            <li class="PlaceOrder order_list_place_btn">
                                <button class="search_btn_b PlaceOrder" id="edit_place_btn" disabled="disabled">所在地</button>
                            </li>
                            @{
                            if(@ViewBag.IsHideSupplier == "1"){
                            <li class="PurchaseSupplierOrder">
                                <button class="search_btn_b PurchaseSupplierOrder" id="edit_PurchaseSupplier_btn" disabled="disabled">原供应商</button>
                            </li>
                            }
                            }
                            <li class="power">
                                <button class="search_btn_b PurchasePrice" id="edit_PurchasePrice_btn" disabled="disabled">买价</button>
                            </li>

                            <li class="order_list_PurchaseExchangerate_btn">
                                <button class="search_btn_p PurchaseExchangerate order_list_PurchaseExchangerate_btn" id="edit_PurchaseExchangerate_btn" disabled="disabled">采汇</button>
                            </li>
                            <li><span id="order_term_btn" class="add_blue" style="display: none;">筛选</span> </li>
                        </ul>

                    </div>
                    <div id="check_count_box" class="order_count_box">
                        <span>选中<b id="check_len" class="check_num">0</b>个</span>
                        <span class="CurrentRMB">卖￥<b id="check_rmb" class="check_first">0</b></span>
                        <span class="CurrentUSD">卖$<b id="check_usd" class="check_second">0</b></span>
                        <span class="CurrentRMB">买￥<b id="check_buy_rmb" class="check_third">0</b></span>
                        <span class="CurrentUSD">买$<b id="check_buy_usd" class="check_four">0</b></span>
                    </div>
                    <table class="product_table" id="product_table_fixed">
                        <thead>
                        <tr>

                        </tr>
                        </thead>
                        <tbody>

                        </tbody>
                    </table>

                </div>
                <!--二级导航end-->

            </div>
        </div>
        <div class="pages navbar-through toolbar-through">
            <div data-page="index" class="page">
                <div class="page-content" id="app_no_header">
                    <!--内容区start-->
                    <div class="order-list" id="order_table_box">
                        <table class="product_table table_hide" id="product_table" style="border-top:none;">
                            <thead style="opacity: 0;">
                            <tr>

                            </tr>
                            </thead>
                            <tbody id="stock_body">

                            </tbody>
                        </table>
                    </div>
                    <div class="check_stat_box" style="position: fixed;top: 0px;left: 0;z-index: 11130;display: none;">
                        <span>已选：<b class="check_num" style="font-weight: bold; color: red;">0 </b>条</span>
                        <span>卖￥：<b class="check_first" style="font-weight: bold; color: red;">0</b>￥</span>
                        <span>卖$：<b class="check_second" style="font-weight: bold; color: red;">0</b>$</span>
                        <span>买￥：<b class="check_third" style="font-weight: bold; color: red;">0</b>￥</span>
                        <span>买$：<b class="check_four" style="font-weight: bold; color: red;">0</b>$</span>

                    </div>
                    <!--内容区end-->
                </div>
            </div>
        </div>

        <!--弹框-->

        <!--作废提示-->
        <div class="tip-bg-box" id="disOder">
            <div class="tip-bg" style="height:150px;">
                <textarea id="remarks" placeholder="您为什么要作废？"></textarea>
                <span class="sure-disorder">确定</span>
                <span class="cancel-disorder">取消</span>
            </div>
        </div>

        <!-- 订单转移start --->
        <div class="popup ModifyPurchaseUserID_box">
            <div class="pop pop-radius">
                <span class="colse_popbox close-popup">X</span>
                <h5>选择采购</h5>
                <form class="form-inline _transfer clearfix" style="padding: 5px 5px 5px 30px;" id="_transfer" method="post">
                    <div class="form-group">
                        <label class="checkbox-inline">选择采购：</label>
                        <select class="form-control list_search" id="_purchasesUserIDs" name="PurchasesUserID"></select>
                    </div>
                    <div class="form-btn">
                        <span><input type="button" class="btn btn-danger supbtn cancel close-popup" name="qx" value="取消" /></span>
                        <span><input type="submit" class="btn btn-danger supbtn" value="确定" /></span>
                    </div>
                </form>
            </div>
        </div>
        <!-- 订单转移end --->

        <!-- 批量优惠start-->
        <div class="popup ReviseOrders_box">
            <div class="pop pop-radius">
                <span class="colse_popbox close-popup">X</span>
                <h5>批量优惠</h5>
                <form class="form-inline _revise" style="padding: 5px 5px 5px 30px;" method="post" id="_revise">
                    <div class="form-group">
                        <label for="SalesExchangerate">销售汇率：</label>
                        <input class="form-control" type="text" required="required" id="_salesExchangerate" name="SalesExchangerate" placeholder="必填" />
                    </div>
                    <div class="form-group" id="_discount_box">
                        <label for="DiscountReturn_check" style="width: auto;">
                            <input style="width:30px" type="radio" name="mode" value="1" checked="checked" id="DiscountReturn_check" onchange="DiscountReturnEvent()" />优惠退点&nbsp;&nbsp;&nbsp;
                        </label>
                        <label for="Discount_check" style="width: auto">
                            <input style="width:30px"  type="radio" name="mode" value="0" id="Discount_check" onchange="DiscountEvent()" />优惠折扣
                        </label>
                    </div>
                    <div class="form-group" id="DiscountReturn_box">
                        <label for="DiscountReturn">优惠退点：</label>
                        <input class="form-control" type="text" id="_rebate" name="DiscountReturn" placeholder="优惠1个点输入-1" required="required"/>
                    </div>
                    <div class="form-btn">
                        <input type="button" class="btn btn-danger supbtn close-popup" value="取消" name="cancel_btn"/>
                        <input type="submit" class="btn btn-danger supbtn" value="确定"/>
                    </div>
                </form>

            </div>
        </div>
        <!--批量优惠end -->

        <!-- 订单到货start --->
        <div class="popup ArrivalOrders_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>确认到货</h5>
                <form class="form-inline _arrival" style="padding: 5px 5px 5px 30px;" id="_arrival" method="post">
                    <div class="form-group" id="arrival_box">
                        <label for="Arrivaltime">到货日期：</label>
                        <div class="list-block" style="margin: 0;">
                            <ul>
                                <li>
                                    <div class="item-content" style="padding-left: 0;">
                                        <div class="item-inner">
                                            <div class="item-input">
                                                <input type="text" class="date_input time_input" name="Arrivaltime" placeholder="选择日期" readonly id="_arrivaltime_" required="required">
                                            </div>
                                        </div>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="form-btn">
                        <input type="button" class="btn btn-danger supbtn close-popup" value="取消" />
                        <input type="submit" class="btn btn-danger supbtn" value="确定" />               <!-- onclick="ModifyPurchaseUserID();" -->
                    </div>
                </form>
            </div>
        </div>
        <!-- 订单到货end --->

        <!-- 订单作废start-->
        <div class="popup CancelOrders_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>作废订单</h5>
                <form class="form-inline _cancel" style="padding: 5px 5px 5px 30px;" method="post" id="_invalid">
                    <div class="form-group clearfix">
                        <label for="SalesRemarks" class="purchase-textarea">业务备注：</label>
                        <textarea class="form-control form-text" required="required" rows="3" cols="40" id="_cancelRemarks" placeholder=详细描述作废原因" name="SalesRemarks" style="height: 110px;"></textarea>
                    </div>
                    <div class="form-btn">
                        <input type="reset" class="btn btn-danger supbtn" value="重置"/>
                        <input type="submit" class="btn btn-danger supbtn" value="确定"/>
                    </div>
                </form>
            </div>
        </div>
        <!--订单作废end -->

        <!-- 收款start-->
        <div class="popup PayOrders_box" id="PayOrders_box">
            <div class="pop pop-radius">
                <span class="colse_popbox close-popup">X</span>
                <h5>收款</h5>
                <form class="form-inline" style="padding: 5px 5px 5px 30px;" method="post" id="_pay">
                    <label class="checkbox-inline" style="display:none;">
                        <b id="_payCustID"></b>
                    </label>
                    <div class="form-group" style="display: block;">
                        <label>应收金额:</label>
                        <span class="CurrentRMB"><b class="check_first stars_tip">0</b>￥&nbsp;&nbsp;&nbsp;或</span>
                        <span class="CurrentUSD"><b class="check_second stars_tip">0</b>$</span>
                    </div>
                    <div class="form-group">
                        <label for="Currency">用户余额:</label>
                        <select class="form-control" name="Currency" id="_currency">
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="Account">选择银行:</label>
                        <select class="form-control" name="Account" id="_optionBank">
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="Amount">充入金额:</label>
                        <input type="number" class="form-control" id="_chargingAmount" name="Amount" placeholder="0" value="0" />
                    </div>
                    <div class="form-group" id="arrivalTime_inp" style="display:none">
                        <label for="ArrivalTime">到账日期:</label>
                        <input type="text" class="form-control date_input time_input" name="ArrivalTime" id="_accountTime"/>
                    </div>
                    <div class="form-group" id="remarks_inp" style="display:none">
                        <label for="Remarks">备注:</label>
                        <textarea class="form-text" id="_remarks2" name="Remarks"  cols="65" style="height:52px"></textarea>
                    </div>

                    <!-- onclick="PayOrders()"-->
                    <div class="form-btn">
                        <input type="button" class="btn btn-danger supbtn close-popup" name="qx" value="取消" />
                        <input type="submit" class="btn btn-danger supbtn" value="确定"/>
                    </div>
                </form>
            </div>
        </div>
        <!--收款end -->

        <!-- 收供应商退款start-->
        <div class="popup PayBackOrders_box" id="PayBackOrders_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>收款</h5>
                <form class="form-inline" style="padding: 5px 5px 5px 30px;" method="post" id="_payback">  <!--  _cancel -->
                    <div class="form-group">
                        <label>应收金额：</label>
                        <b class="check_third" style="font-weight: bold; color: red;">0</b>￥
                    </div>
                    <div class="form-group">
                        <label for="BankID">收款账户：</label>
                        <select id="_paybackBankID" class="form-control list_search" name="BankID"></select>
                    </div>
                    <div class="form-group">
                        <label for="PayBackAmount">实收金额：</label>
                        <input type="number" class="form-control" name="PayBackAmount" placeholder="总金额" id="_paybackAmount"/>
                    </div>
                    <div class="form-group">
                        <label for="ArrivalTime">收款日期：</label>
                        <div class="list-block" style="margin: 0;">
                            <ul>
                                <li>
                                    <div class="item-content" style="padding-left: 0;">
                                        <div class="item-inner">
                                            <div class="item-input">
                                                <input type="text" class="date_input time_input" name="ArrivalTime" placeholder="发货日期" readonly id="paybackarrivalTime" required="required">
                                            </div>
                                        </div>
                                    </div>
                                </li>
                            </ul>
                        </div>
                        <!--<input type="text" class="form-control time_input" id="paybackarrivalTime" name="ArrivalTime" />-->
                    </div>
                    <div class="form-btn">
                        <input type="button" class="btn btn-danger supbtn close-popup" value="取消" />
                        <input type="submit" class="btn btn-danger supbtn" value="确定"/>
                    </div>
                </form>
            </div>
        </div>
        <!--收供应商退款end -->


        <!-- 付款start-->
        <div class="popup ReceiptOrders_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>付款</h5>
                <form class="form-inline" style="padding: 5px 5px 5px 30px;" method="post" id="_receipt">
                    <div class="form-group">
                        <label>应付金额：</label>
                        <span class="CurrentRMB"><b class="check_third" style="font-weight: bold; color: red;">0</b>￥ 或 </span>
                        <span class="CurrentUSD"><b class="check_four" style="font-weight: bold; color: red;">0</b>$</span>
                    </div>
                    <div class="form-group">
                        <label for="BankID">付款账户：</label>
                        <select id="_receiptBankID" class="form-control list_search" name="BankID" required="required"></select>
                    </div>
                    <div class="form-group">
                        <label for="ArrivalTime">付款日期：</label>
                        <input type="text" class="form-control date_input time_input" name="ArrivalTime" placeholder="选择日期" readonly id="receiptarrivalTime" required="required">
                    </div>
                    <div class="form-btn">
                        <input type="button" class="btn btn-danger supbtn close-popup" value="取消" />
                        <input type="submit" class="btn btn-danger supbtn" value="确定" />
                    </div>
                    <em>默认全部付</em>
                </form>
            </div>
        </div>
        <!--付款end -->

        <!-- 修改运费start-->
        <div class="popup ModFreight_box">
            <div class="pop pop-radius">
                <span class="colse_popbox close-popup">X</span>
                <h5>修改运费</h5>
                <form class="form-inline _frei" style="padding: 5px 5px 5px 30px;" method="post" id="_frei">
                    <div class="form-group">
                        <label for="Freight">运费：</label>
                        <input class="form-control" required="required" type="text" id="_freight" name="Freight" placeholder="实际运费"/>
                    </div>
                    <div class="form-btn">
                        <input type="button" class="btn btn-danger supbtn close-popup" value="取消" />
                        <input type="submit" class="btn btn-danger supbtn" value="确定"/>
                    </div>
                </form>
            </div>
        </div>
        <!--修改运费end -->

        <!-- 出货start-->
        <div class="popup EditShip_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>订单出货</h5>
                <form class="form-inline _ship" style="padding: 5px 5px 5px 30px;" method="post" id="_ship">
                    <div class="form-group clearfix">
                        <label for="ShipRemarks" class="purchase-textarea">出货审核：</label>
                        <textarea class="form-control form-text" required="required" rows="3" cols="40" id="_shipRemarks" placeholder="审核结果和审核人签字" name="ShipRemarks" style="height: 110px;"></textarea>
                    </div>
                    <div class="form-btn">
                        <input type="button" class="btn btn-danger supbtn close-popup" name="qx" value="取消" />
                        <input type="submit" class="btn btn-danger supbtn" value="确定"/>
                    </div>
                    <em>为了降低风险，出货前请了解客户欠款</em>
                </form>
            </div>
        </div>
        <!--出货end -->

        <!-- 订单自留start-->
        <div class="popup StockOrders_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>自留变现</h5>
                <form class="form-inline _cancel" style="padding: 5px 5px 5px 30px;" method="post" id="_stock">

                    <label class="checkbox-inline" style="display: none;">
                        <b id="_stockCustomerID"></b>
                    </label>
                    <div>
                        <label for="SalesRemarks" class="purchase-textarea">备注：</label>
                        <textarea class="form-control form-text" required="required" rows="3" cols="45" id="_stockRemarks" placeholder="详细描述自留原因" name="SalesRemarks" style="height: 110px;"></textarea>
                    </div>
                    <div class="form-btn">
                        <input type="button" class="btn btn-danger supbtn close-popup" value="取消" />
                        <input type="submit" class="btn btn-danger supbtn" value="确定"/>
                    </div>
                    <em>自留<b style="color:red;font-weight:bold">已收</b>订单，<b style="color:red;font-weight:bold">已收金额原路退回客户余额</b>。</em>
                </form>
            </div>
        </div>
        <!--订单自留end -->

        <!-- 退回供应商start-->
        <div class="popup ReturnOrders_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>退回供应商</h5>
                <form class="form-inline _cancel" style="padding: 5px 5px 5px 30px;" method="post" id="_return">
                    <label class="checkbox-inline" style="display:none;">
                        <b id="_returnCustomerID"></b>
                    </label>
                    <div>
                        <label for="SalesRemarks" class="purchase-textarea">备注：</label>
                        <textarea class="form-control form-text" rows="3" cols="45" id="_returnRemarks" placeholder="详细描述退货回供应商原因" name="SalesRemarks" style="height: 110px;"></textarea>
                    </div>
                    <div class="form-btn">
                        <input type="reset" class="btn btn-danger supbtn" value="重置"/>
                        <input type="submit" class="btn btn-danger supbtn" value="确定"/>
                    </div>
                    <em>退回<b style="color:red;font-weight:bold">已收</b>订单，<b style="color:red;font-weight:bold">已收金额原路退回客户余额</b>。</em>
                </form>
            </div>
        </div>
        <!--退回供应商end -->

        <!-- 订单备注start-->
        <div class="popup RemarkOrder_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>备注订单</h5>
                <form class="form-inline" style="padding: 5px 5px 5px 30px;">
                    <div class="form-group clearfix">
                        <label for="Remarks" class="Remark-textarea">客户备注：</label>
                        <textarea class="form-control form-text" required="required" rows="3" cols="50" id="_remarks" placeholder="客户说点啥？" name="Remarks"></textarea>
                    </div>
                    <div class="form-group clearfix">
                        <label for="SalesRemarks" class="Remark-textarea">业务备注：</label>
                        <textarea class="form-control form-text" required="required" rows="3" cols="50" id="_salesRemarks" placeholder="业务说点啥？" name="SalesRemarks"></textarea>
                    </div>
                    <div class="form-group clearfix">
                        <label for="PurchaseRemarks" class="Remark-textarea">采购备注：</label>
                        <textarea class="form-control form-text" required="required" rows="3" cols="50" id="_purchaseRemarks" placeholder="采购说点啥？" name="PurchaseRemarks"></textarea>
                    </div>
                    <div class="form-group clearfix">
                        <label for="GoodsRemark" class="Remark-textarea">物流备注：</label>
                        <textarea class="form-control form-text" rows="1" required="required" cols="50" id="_goodsRemark" placeholder="物流说点啥？" name="GoodsRemark"></textarea>
                    </div>
                    <div class="form-btn">
                        <input type="reset" class="btn btn-danger supbtn" value="重置"/>
                        <input type="button" class="btn btn-danger supbtn" id="RemarkOrder_btn" value="确定" />
                    </div>
                </form>
            </div>
        </div>
        <!--订单备注end -->

        <!-- 修改所在地start -->
        <div class="popup ModPlace_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>修改所在地</h5>
                <form class="form-inline" style="padding: 5px 5px 5px 30px;" method="post" id="_modPlace">
                    <div class="form-group">
                        <label for="Place">所在地：</label>
                        <select class="form-control" name="Place" id="_batchplace">
                        </select>
                    </div>
                    <div class="form-btn">
                        <input type="reset" class="btn btn-danger supbtn" value="重置"/>
                        <input type="submit" class="btn btn-danger supbtn" value="确定" />
                    </div>
                </form>
            </div>
        </div>
        <!-- 修改所在地end -->

        <!-- 修改原供应商start -->
        <div class="popup ModPurchaseSupplier_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>修改原供应商</h5>
                <form class="form-inline" style="padding: 5px 5px 5px 30px;" method="post" id="_modPurchaseSupplier">
                    <div class="form-group">
                        <label for="PurchaseSupplier" style="width: 28%;">原供应商：</label>
                        <input class="form-control" type="text" id="_purchaseSupplier" name="PurchaseSupplier" placeholder="原供应商"  />
                    </div>
                    <div class="form-btn">
                        <input type="button" class="btn btn-danger supbtn close-popup" value="取消" />
                        <input type="submit" class="btn btn-danger supbtn" value="确定" />
                    </div>
                </form>
            </div>
        </div>
        <!-- 修改原供应商end -->

        <!-- 修改买价start -->
        <div class="popup ModPurchasePrice_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>修改买价</h5>
                <form class="form-inline" style="padding: 5px 5px 5px 30px;" method="post" id="_modPurchasePrice">
                    <div class="form-group">
                        <label for="PurchaseSupplier">倍数：</label>
                        <input class="form-control" type="text" id="_purchasePrice" name="purchasePrice" placeholder="倍数"  />
                    </div>
                    <div class="form-btn">
                        <input type="reset" class="btn btn-danger supbtn" value="重置"/>
                        <input type="submit" class="btn btn-danger supbtn" value="确定" />
                    </div>
                </form>
            </div>
        </div>
        <!-- 修改原买价end -->

        <!-- 修改采购汇率start -->
        <div class="popup ModPurchaseExchangerate_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>修改买价</h5>
                <form class="form-inline" style="padding: 5px 5px 5px 30px;" method="post" id="_modPurchaseExchangerate">
                    <div class="form-group">
                        <label for="PurchaseSupplier">采购汇率：</label>
                        <input class="form-control" type="number" id="_PurchaseExchangerate" name="PurchaseExchangerate" placeholder="采购汇率"  />
                    </div>
                    <div class="form-btn">
                        <input type="reset" class="btn btn-danger supbtn" value="重置"/>
                        <input type="submit" class="btn btn-danger supbtn" value="确定" />
                    </div>
                </form>
            </div>
        </div>
        <!-- 修改采购汇率end -->

        <!--视频弹框-->
        <div class="popup popup-services">
            <div class="content-block">
                <p style="padding: 10px 0 0 10px;"><a href="#" class="close-popup">返回</a></p>
            </div>
            <div class="pages navbar-through toolbar-through">
                <div data-page="index" class="page">
                    <div class="page-content" id="app_no_header">
                        <!--内容区start-->
                        <div class="parcels_page" style="width:100%;">
                            <div id="PhotoSwipeTarget"></div>
                            <div id="Indicators">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 确定删除start-->
        <div class="popup DelOrders_box">
            <div class="pop pop-radius" >
                <span class="colse_popbox close-popup">X</span>
                <h5>删除订单</h5>
                <form class="form-inline" method="post" id="">
                    <div class="form-group" style="display: none">
                        <label for="OrderID" class="checkbox-inline">订单IDs：</label>
                        <input type="text" class="form-control" id="_ids">
                    </div>
                    <div style="padding-left: 15px;">
                        <label class="checkbox-inline">删除后无法恢复，确定要删除订单吗？</label>
                    </div>
                    <div class="form-btn">
                        <input type="button" class="btn btn-danger supbtn close-popup" value="取消"/>
                        <!-- cancel为本页的css -->
                        <input type="button" id="del_btn" class="btn btn-danger supbtn" onclick="DelOrders();" value="确定"/>
                    </div>

                    <em style="padding-left: 15px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;提醒：确定删除前，建议您导出一份订单作为备用；<b style="color:red">仅供管理员使用</b></em>
                </form>
            </div>
        </div>
        <!--确定删除end -->

        <!-- 采购订单start --->
        <div class="popup modify_pop_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>采购订单</h5>
                <form class="form-inline purchase_form form_box" method="post">
                    <div class="form-group" style="display: none">
                        <label for="OrderID">订单号：</label>
                        <input type="text" class="form-control" id="_orderID" placeholder="订单号" name="OrderID">
                    </div>
                    <div class="form-group" style="display: none">
                        <label for="OrderStatus">订单状态：</label>
                        <input type="text" class="form-control" id="_orderStat" placeholder="订单状态" name="OrderStatus">  <!--11-3 采购和修改采购 -->
                    </div>
                    <div class="form-group">
                        <label for="Weight" class="purchase-text"><b class="star_tip">*</b>重量：</label>
                        <input type="text" class="form-control" id="_weight" placeholder="重量" name="Weight" required="required">
                    </div>
                    <div class="form-group">
                        <label for="Color" class="purchase-text"><b class="star_tip">*</b>白钻：</label>
                        <select class="form-control" name="Color" id="e_color" required="required">
                            <option value="">颜色</option>
                            <option value="D">D</option>
                            <option value="E">E</option>
                            <option value="F">F</option>
                            <option value="G">G</option>
                            <option value="H">H</option>
                            <option value="I">I</option>
                            <option value="J">J</option>
                            <option value="K">K</option>
                            <option value="L">L</option>
                            <option value="M">M</option>
                            <option value="N">N</option>
                            <option value="O-P">O-P</option>
                            <option value="Q-R">Q-R</option>
                            <option value="S-T">S-T</option>
                            <option value="U-V">U-V</option>
                            <option value="W-X">W-X</option>
                            <option value="Y-Z">Y-Z</option>
                            <option value="FY">Fancy</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="Clarity" class="purchase-text"><b class="star_tip">*</b>净度：</label>
                        <select class="form-control" name="Clarity" id="e_clarity" required="required">
                            <option value="">净度</option>
                            <option value="IF">IF</option>
                            <option value="FL">FL</option>
                            <option value="VVS1">VVS1</option>
                            <option value="VVS2">VVS2</option>
                            <option value="VS1">VS1</option>
                            <option value="VS2">VS2</option>
                            <option value="SI1">SI1</option>
                            <option value="SI2">SI2</option>
                            <option value="SI3">SI3</option>
                            <option value="I1">I1</option>
                            <option value="I2">I2</option>
                            <option value="I3">I3</option>
                            <option value="NN">NN</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="Cut" class="purchase-text">切工：</label>
                        <select class="form-control" name="Cut" id="_cut">
                            <option value="EX">EX</option>
                            <option value="VG">VG</option>
                            <option value="GD">GD</option>
                            <option value="FR">FR</option>
                            <option value="PR">PR</option>
                            <option value="NN">NN</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="Polish" class="purchase-text">抛光：</label>
                        <select class="form-control" name="Polish" id="_polish">
                            <option value="EX">EX</option>
                            <option value="VG">VG</option>
                            <option value="GD">GD</option>
                            <option value="FR">FR</option>
                            <option value="PR">PR</option>
                            <option value="NN">NN</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="Symmetry" class="purchase-text">对称：</label>
                        <select class="form-control" name="Symmetry" id="_symmetry">
                            <option value="EX">EX</option>
                            <option value="VG">VG</option>
                            <option value="GD">GD</option>
                            <option value="FR">FR</option>
                            <option value="PR">PR</option>
                            <option value="NN">NN</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="Fluorescence" class="purchase-text">荧光：</label>
                        <select class="form-control" name="Fluorescence" id="_fluorescence">
                            <option value="N">N</option>
                            <option value="VSL">VSL</option>
                            <option value="F">F</option>
                            <option value="M">M</option>
                            <option value="S">S</option>
                            <option value="VS">VS</option>
                            <option value="NN">NN</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="Shape" class="purchase-text">形状：</label>
                        <select class="form-control" name="Shape" id="_shape" disabled="disabled">
                            <option value="">形状</option>
                            <option value="1">圆形</option>
                            <option value="2">公主方</option>
                            <option value="3">祖母绿</option>
                            <option value="4">雷迪恩</option>
                            <option value="5">椭圆形</option>
                            <option value="6">梨形</option>
                            <option value="7">马眼形</option>
                            <option value="8">心形</option>
                            <option value="9">三角形</option>
                            <option value="10">垫形</option>
                            <option value="11">其他</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="Color" class="purchase-text">彩钻：</label>
                        <input type="text" class="form-control" id="e_fancycolor" placeholder="彩钻颜色" name="Color">
                    </div>

                    <div class="form-group">
                        <label for="OriginSN" class="purchase-text">原货号：</label>
                        <input type="text" class="form-control" id="_originSN" placeholder="原货号" name="OriginSN" />
                    </div>
                    <div class="form-group">
                        <label for="CertType" class="purchase-text">证书：</label>
                        <select class="form-control" name="CertType" id="_certType">
                            <option value="GIA">GIA</option>
                            <option value="IGI">IGI</option>
                            <option value="NGTC">NGTC</option>
                            <option value="HRD">HRD</option>
                            <option value="EGL">EGL</option>
                            <option value="NN">无证</option>
                            <option value="PARCEL">散货</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="CertNo" class="purchase-text"><b class="star_tip">*</b>证书号：</label>
                        <input type="text" required="required" class="form-control" id="_certno" placeholder="证书号" name="CertNo" />
                    </div>
                    <div class="form-group">
                        <label for="Rapnet" class="purchase-text">RAP：</label>
                        <input type="text" class="form-control" id="_rapnet" placeholder="Rap" name="Rap" readonly="readonly" />
                    </div>
                    <div class="form-group">
                        <label for="IsFancy" class="purchase-text">白/彩：</label>
                        <select class="form-control" name="IsFancy" id="_isFancy" disabled="disabled">
                            <option value="">白/彩</option>
                            <option value="0">白钻</option>
                            <option value="1">彩钻</option>
                        </select>
                    </div>
                    <div class="form-group form-group-tip">
                        <label for="DiscountReturn" class="purchase-text"><b class="star_tip">*</b>原退：</label>
                        <input type="text" required="required" class="form-control" id="_discountReturn" placeholder="白钻以原退为准" name="DiscountReturn"/> <!--onblur="computeUsd();"-->
                        <!--<p class="purchase-tip">(白钻以原退为准)</p>-->
                    </div>
                    <div class="form-group form-group-tip PurCurrentUSD">
                        <label for="PriceUSD" class="purchase-text"><b class="star_tip">*</b>买$：</label>
                        <input type="text" required="required" class="form-control" id="_priceUSD" placeholder="彩钻以买$为准" name="PriceUSD"/> <!--onblur="computeDis();"-->
                        <!--<p class="purchase-tip">(彩钻以买$为准)</p>-->
                    </div>
                    <div class="form-group PurexchangeRate" style="display: none;">
                        <label for="PurchaseExchange" class="purchase-text">采汇：</label>
                        <input type="number" class="form-control" id="_purchaseExchange" placeholder="采购汇率" name="PurchaseExchange">
                        <!--<p class="purchase-tip">(采购汇率)</p>-->
                    </div>
                    <div class="form-group PurCurrentRMB">
                        <label for="PurchaseRMB" class="purchase-text">买￥：</label>
                        <input type="number" class="form-control" id="_purchaseRMB" placeholder="以￥结算时请不要空" name="PurchaseRMB">
                    </div>
                    @{
                    if(@ViewBag.IsHideSupplier == "1"){
                        <div class="form-group">
                            <label for="SupplierCode" style="width: auto;"><b class="star_tip">*</b>供应商：</label>
                            <!-- H5 的 datalist 不兼容IE7 8 9 -->
                            <datalist class="form-control" id="_supplierCode" style="display:none;">
                            </datalist>
                            <input class="form-control" required="required" list="_supplierCode" id="_supplierCodeValue" placeholder="供应商" name="SupplierCode" />  <!-- name = "SupplierCode" 11-3 -->
                        </div>
                    }
                    }

                    <div class="form-group" style="width: 100%;">
                        <label for="DeliveryTime" style="width: auto;"><b class="star_tip">*</b>发货日期：</label>
                        <div class="list-block" style="margin: 0;">
                            <ul>
                                <li>
                                    <div class="item-content" style="padding-left: 0;">
                                        <div class="item-inner">
                                            <div class="item-input">
                                                <input type="text" class="date_input time_input" name="DeliveryTime" placeholder="发货日期" readonly id="_deliveryTime" required="required">
                                            </div>
                                        </div>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="form-group remarks-group">
                        <label for="PurchaseRemarks" class="purchase-textarea" style="top: 0;"><b class="star_tip">*</b>采购备注：</label>
                        <textarea id="_purchasesRemarks" required="required" name="PurchaseRemarks" placeholder="采购备注" class="form-text" cols="65"></textarea>
                    </div>
                    <div style="clear: both;"></div>
                    <div class="form-btn">
                        <!--<input type="button" class="btn btn-danger supbtn cancel cancel_box" value="取消"  name="kc" />-->
                        <input type="reset" class="btn btn-danger supbtn" value="重置" />
                        <input type="submit" class="btn btn-danger supbtn" value="确定"/> 	            <!-- onclick="PurchaseOrder()"-->
                    </div>
                    <em class="Purchase-Em clearfix">（1）点击供应商下拉箭头可查看当前取货地址，供应商联系方式或取货地址永久变更请及时到【供应商】-【裸钻】修改，临时变更请填写到“采购备注”，否则货品将无法取回。<br />（2）以人民币结算时请务必核实并填写买￥。<br />（3）彩钻请填写“彩钻颜色”，原退可填写“0”。</em>
                </form>
            </div>
        </div>
        <!-- 采购订单end -->

        <!-- 单个售价start-->
        <div class="popup ReviseAnOrder_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>修改售价</h5>
                <form class="form-inline _reviseOrder" method="post" id="_reviseOrder">
                    <div class="form-group" style="display: none">
                        <label for="OrderID" class="purchase-text">销售汇率：</label>
                        <input type="text" id="_anorderid" name="OrderID" placeholder="" />
                    </div>
                    <div class="form-group">
                        <label for="SalesExchangerate" class="purchase-text">销售汇率：</label>
                        <input type="text" id="_salesRate" name="SalesExchangerate" placeholder="必填" required="required"  class="form-control"/>
                    </div>
                    <div class="form-group" id="_discount_box_one">
                        <label for="for_discount">
                            <input id="for_discount" type="radio" name="model" value="0" checked="checked" onchange="DiscountReturnEvent_one()" />退点 &nbsp;&nbsp;&nbsp;
                        </label>
                        <label for="for_pcs" class="CurrentRMB" style="display: none;">
                            <input id="for_pcs" type="radio" name="model" value="1" onchange="DiscountEvent_one()" />￥/Pcs
                        </label>
                        <label for="for_pcs_usd" class="CurrentUSD" style="display: none;">
                            <input id="for_pcs_usd" type="radio" name="model" value="2" onchange="DiscountEvent_one_usd()" />$/Pcs
                        </label>
                    </div>
                    <div class="form-group" id="Confirmdiscount_box">
                        <label for="Confirmdiscount" class="purchase-text">退点：</label>
                        <input type="number" id="_confirmdiscount" required="required" name="Confirmdiscount" placeholder="加2个点输入-2" class="form-control"/>
                    </div>
                    <div class="form-group" id="ConfirmPrice_box">
                        <label for="ConfirmPrice" class="purchase-text">￥/Pcs：</label>
                        <input type="number" id="_confirmPrice" name="ConfirmPrice" required="required" placeholder="人民币总价" class="form-control"/>
                    </div>
                    <div class="form-group" id="ConfirmPrice_boxUSD"  style="display: none;">
                        <label for="ConfirmPriceUSD" class="purchase-text">$/Pcs：</label>
                        <input type="number" id="_confirmPriceUSD" name="ConfirmPriceUSD" required="required" placeholder="美金总价" class="form-control"/>
                    </div>
                    <div class="form-btn">
                        <input type="button" class="btn btn-danger supbtn close-popup" name="qx" value="取消"/>
                        <input type="submit" class="btn btn-danger supbtn" value="确定"/>
                    </div>
                    <b id="_reviseanorderResult" style="color: red"></b>
                </form>
            </div>
        </div>
        <!--单个售价end -->


        <!-- 联系方式start-->
        <div class="popup Contact_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>联系方式</h5>
                <form class="form-inline contact-form form-box" style="padding: 5px 5px 30px 30px;">
                    <div class="form-group">
                        <label for="ShortName">简称：</label>
                        <input class="form-control" type="text" name="ShortName" id="_shortName" placeholder="简称" disabled/>
                    </div>
                    <div class="form-group">
                        <label for="Company">全称：</label>
                        <input class="form-control" type="text" name="Company" id="_company" placeholder="全称" disabled/>
                    </div>
                    <div class="form-group">
                        <label for="Name">联系人：</label>
                        <input class="form-control" type="text" name="Name" id="_name" placeholder="Name" disabled/>
                    </div>
                    <div class="form-group">
                        <label for="QQ">QQ：</label>
                        <input class="form-control" type="text" name="QQ" id="_qq" placeholder="QQ" disabled/>
                    </div>
                    <div class="form-group">
                        <label for="Telephone">固话：</label>
                        <input class="form-control" type="text" name="Telephone" id="_telephone" placeholder="固话" disabled/>
                    </div>
                    <div class="form-group">
                        <label for="WeChat">微信：</label>
                        <input class="form-control" type="text" name="WeChat" id="_wechat" placeholder="WeChat" disabled/>
                    </div>
                    <div class="form-group">
                        <label for="Email">邮箱：</label>
                        <input class="form-control" type="text" name="Email" id="_email" placeholder="Email" disabled/>
                    </div>
                    <div class="form-group">
                        <label for="Skype">Skype：</label>

                        <a href="skype:david_tompeng?call"  id="_skype">
                            <span></span>
                        </a>
                    </div>
                    <div class="form-group">
                        <label for="MobilePhone">手机：</label>
                        <input class="form-control" type="text" name="MobilePhone" id="_mobilephone" placeholder="MobilePhone" disabled/>
                    </div>
                    <div class="form-group">
                        <label for="Website">网站：</label>
                        <input class="form-control" type="text" name="Website" id="_website" placeholder="网站" disabled/>
                    </div>
                    <div class="form-group">
                        <label for="RapID">RapID：</label>
                        <input class="form-control" type="text" name="RapID" id="_rapid" placeholder="RapID" disabled/>
                    </div>
                    <div class="form-group" style="margin-left: 0;">
                        <label for="Address">地址：</label>
                        <input class="form-control" type="text" name="Address" id="_address" placeholder="Address" disabled/>
                    </div>
                </form>
            </div>
        </div>
        <!--联系方式end -->


    </div>
</div>
</body>
</html>
@Html.Partial("wap/team/commonTeamJs")
<script>

    var isHideSupplier="@ViewBag.IsHideSupplier"; //1显示 2隐藏

    var PARAMS=@Html.Raw(ViewBag.Param);

    var roid=$.cookie("RoleID");
    //只有管理员和物流 副管能操作确认到货,取消到货,运费
    if( roid==1|| roid == 5 || roid == 6){
        $(".ArrivalOrders,.CancelArrivalOrders,.ModFreight").show();
    }else{
        $(".ArrivalOrders,.CancelArrivalOrders,.ModFreight").hide();
    }
    if(roid == 1){
        $('.transfer,.revise,.arrived,.cancel_arrived,.pay,.freight,.invalid,.prepare,.ship,.receipt,.stock,.back,.del,.RemarkOrder,.PlaceOrder,' +
                '.PurchaseSupplierOrder,.power,.order_list_PurchaseExchangerate_btn').show();
    }

</script>
<script src="~/Js/emeralds.js"></script>
<script src="~/Js/jquery-ui.min.js"></script>
<script src="~/Js/jquery.validate.min.js"></script>
<script src="~/Js/wap/team/orderValidate.js?v=@MvcWechat.Common.Version.Get"></script>
<script type="text/javascript" src="~/Js/wap/title_scroll/flexible.js"></script>
<script type="text/javascript" src="~/Js/wap/title_scroll/iscroll.js"></script>
<script type="text/javascript" src="~/Js/wap/title_scroll/navbarscroll.js"></script>
<script src="~/Js/jquery.form.js"></script>
<script type="text/javascript" src="~/js/wap/team/calcPrice.js?v=@MvcWechat.Common.Version.Get"></script> <!-- 价格相关（含格式化及计算）-->
<script src="~/js/wap/team/order_table.js?v=@MvcWechat.Common.Version.Get" type="text/javascript"></script>
<script src="~/js/wap/team/order_handle.js?v=@MvcWechat.Common.Version.Get" type="text/javascript"></script>
<script type="text/javascript" src="~/js/klass.min.js"></script>
<script type="text/javascript" src="~/js/code.photoswipe.jquery-3.0.5.min.js"></script>
<script type="text/javascript" src="~/js/pinchzoom.js"></script>
